home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 023a / ebird10d.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-12-11  |  5KB  |  175 lines

  1. echo off
  2. cls
  3. echo ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  4. echo ▌Early Bird Home/Business Reminder Program ▐
  5. echo ▌INSTALLATION                              ▐
  6. echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  7. if not exist install.bat goto baddir
  8. if not exist ebdoc.exe goto baddir
  9. if not exist eb.exe goto baddir
  10. if "%1"=="" goto nodrive
  11. for %%a in ("help" "HELP") do if "%1"==%%a goto help
  12. for %%a in (A B a b) do if "%1"=="%%a:" goto floppy
  13. for %%a in (C D E F G H I J K L M c d e f g h i j k l m) do if "%1"=="%%a:" goto hard
  14. echo  
  15. echo "%1" is an invalid drive designator.
  16. goto help
  17.  
  18. :floppy
  19. echo  
  20. echo ──── FLOPPY DRIVE Installation ────
  21. echo  
  22. echo The Early Bird Program files will be copied to floppy disk drive "%1".
  23. echo You must have a formatted floppy disk ready to continue.
  24. echo  
  25. ebdoc /PD
  26. echo  
  27. if errorlevel 88 goto end
  28.  
  29. cd %1\
  30. goto final
  31.  
  32. :hard
  33. if not "%2"=="" goto hardd
  34. echo  
  35. echo ──── HARD DISK Installation ────
  36. echo  
  37. echo Early Bird Program files will be copied to hard disk drive "%1" into
  38. echo the directory "%1\EB".
  39. echo  
  40. ebdoc /PD
  41. echo  
  42. if errorlevel 88 goto end
  43.  
  44. ctty nul
  45. mkdir %1\EB
  46. ctty con
  47. cd %1\EB
  48. goto final
  49.  
  50. :hardd
  51. echo  
  52. echo ──── HARD DISK (Specific Drive) Installation ────
  53. echo  
  54. echo Early Bird Program files will be copied to the hard disk drive
  55. echo directory "%1%2".
  56. echo  
  57. ebdoc /PD
  58. if errorlevel 88 goto end
  59.  
  60. ctty nul
  61. mkdir %1%2
  62. ctty con
  63. cd %1%2
  64.  
  65. :final
  66. if exist eb.exe goto ok
  67. echo Sorry, cannot install from a disk to itself. Just "copy" the files.
  68. goto end
  69.  
  70. :ok
  71. echo  
  72. if not exist %1eb.rem goto overwrite
  73. echo Warning, EB.REM already exists in %1%2.
  74. ebdoc /P "Do you wish to OVERWRITE it with the default sample EB.REM file? (Y/N): " YN
  75. echo  
  76. if not errorlevel 89 goto skipit
  77. :overwrite
  78. echo Copying EB.REM file to %1%2...
  79. copy EB.REM %1%2
  80.  
  81. :skipit
  82. echo  
  83. ebdoc /P "Enter \"A\" to copy All files or \"O\" to copy Only EB.EXE and EB.HLP: " AO
  84. echo  
  85. echo Copying files to %1%2...
  86. if errorlevel 79 goto only3
  87. for %%a in (CHANGES.DOC EB.CMP EB.HLP HOLIDAYS.REM EBDOC.EXE GO.BAT) do copy %%a %1
  88. for %%a in (GO.DOC INSTALL.BAT ORDER.DOC README.DOC EB.EXE) do copy %%a %1
  89. if not exist %1EB.EXE goto prob
  90. goto doneit
  91. :only3
  92. for %%a in (EB.HLP EBDOC.EXE EB.EXE) do copy %%a %1
  93. if not exist %1eb.exe goto prob
  94.  
  95. :doneit
  96. %1
  97. echo  
  98. ebdoc /P "Does your monitor display colors? (Y/N): " YN
  99. echo  
  100. if errorlevel 89 goto color
  101. ebdoc /P "Does your monochrome monitor display shades between black and white? (Y/N): " YN
  102. echo  
  103. if errorlevel 89 goto bw
  104. %1eb /LCD /STOREOPTIONS
  105. goto chkmouse
  106. :color
  107. %1eb /COLOR /STOREOPTIONS
  108. goto chkmouse
  109. :bw
  110. %1eb /BW /STOREOPTIONS
  111. :chkmouse
  112. echo  
  113. ebdoc /P "Do you have a mouse? (Y/N): " YN
  114. echo  
  115. if errorlevel 89 goto yesmouse
  116. %1eb /NOMOUSE /STOREOPTIONS
  117. goto complete
  118. :yesmouse
  119. %1eb /MOUSE /STOREOPTIONS
  120. :complete
  121. echo  
  122. echo Early Bird Program Installation is now complete to %1.
  123. echo  
  124. if not exist EB.CMP goto nodoc
  125. ebdoc /P "Press \"D\" to view or print documentation or \"C\" to continue: " DC
  126. echo  
  127. if errorlevel 68 ebdoc
  128. :nodoc
  129. echo  
  130. echo ──── INSTALLATION COMPLETE ────
  131. echo  
  132. echo Type "EB" and press Enter to enter the Early Bird Editor.
  133. echo Type "EB SCAN" and press Enter to scan reminders.
  134. echo Type "EB ?" and press Enter to get details on how to run the program.
  135. goto end
  136.  
  137. :prob
  138. echo  
  139. echo There was a problem copying to %1%2.  You may not have enough disk space
  140. echo on drive %1 or you may have specified an invalid drive to copy to.
  141. echo Please check the syntax from the following summary screen.
  142. goto help
  143.  
  144. :baddir
  145. echo  
  146. echo This installation program must be run from the current drive and
  147. echo directory.  Type the drive letter (A: or B: or C:, etc...) at the
  148. echo DOS prompt of the drive containing the installation program and
  149. echo press the Enter key.  Then re-run INSTALL.
  150. goto end
  151.  
  152. :nodrive
  153. echo  
  154. echo You must specify a drive (e.g. A:, C:,...) to copy the Early Bird files to.
  155.  
  156. :help
  157. echo  
  158. echo TO INSTALL TO A FLOPPY DRIVE:
  159. echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  160. echo Enter "INSTALL A:" or "INSTALL B:" at the DOS prompt and press the Enter key.
  161. echo NOTE: If you have only one floppy drive, A:, then use the command INSTALL B:
  162. echo and simply insert the proper disks into drive A: when DOS tells you to.
  163. echo  
  164. echo TO INSTALL TO A HARD DISK:
  165. echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  166. echo Enter "INSTALL" followed by the hard drive letter: (e.g.: C:,D:,...,M:) at
  167. echo the DOS prompt and press the Enter key.  (e.g: "INSTALL C:")  The files will
  168. echo be copied into the directory \EB on the selected hard disk.
  169. echo  
  170. echo To install to a directory other that \EB, enter a space after the drive
  171. echo letter followed by the directory name (e.g., "INSTALL C: \MYDIR").
  172. :end
  173. echo on
  174. 
  175.